package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.CategoryEntity;
import com.example.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xiaoming
 * @email 434216555@qq.com
 * @date 2021-06-21 19:51:49
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    Long[] findCateLogPathById(Long catelogId);

    List<CategoryEntity> getLevel1Catagories();

    Map<String, List<Catelog2Vo>> getCategoryMap();

    Map<String, List<Catelog2Vo>> getCategoryMapFromDB();

    void updatCascade(CategoryEntity category);
}

